package com.heima.order.controller;


import com.heima.common.Result;
import com.heima.order.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhuan
 * @since 2023-09-06
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private IOrderService orderService;

    @PostMapping("/createOrder")
    public Result createOrder(){
        Result result = orderService.createOrder();
        return result;
    }
}
